<?php
/**
*+-------第三方平台接入的公共基类--------+
*+-------------------------------------------------+
*+-------------------------------------------------+
*+-@author susy.liang <liangling@ilongyuan.com.cn>-+
*+-------------------------------------------------+
*/
namespace Auth\Controller;
use Auth\Event\PublicEvent;

class WebController extends PublicController {

	/**
	*回调处理
	*/
   public function callBack(){
   		$channel = I('channel');
		if (!$channel){
			E("param error: need param channel", 201);				
		}

		$class = 'Auth/'.ucfirst($channel);
		$eventObj = A($class, 'Event');
		if($eventObj instanceof PublicEvent){
			$params = I('');
			$res = $eventObj->callBack($params);
			

		}else{
			E('system error: class miss!', 101);
		}
   		
   }

}